@layout("/common/_container.html",{js:["/assets/modular/player/player.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">会员用户管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="nickname" class="layui-input" type="text" placeholder="用户昵称"/>
                            </div>
                            <div class="layui-inline">
                                <input id="userNo" class="layui-input" type="text" placeholder="用户编号"/>
                            </div>
                            <div class="layui-inline">
                                <input id="introducerNo" class="layui-input" type="text" placeholder="推广人编号"/>
                            </div>
                            <div class="layui-inline">
                                <input id="introducerName" class="layui-input" type="text" placeholder="推广人昵称"/>
                            </div>
                            <div class="layui-inline">
                                <select name="归属代理"  id="deptid">
                                    <option value="">全部代理</option>
                                    @for( agent in agentList! ){
                                        <option value="${agent.deptId}">${agent.name}</option>
                                    @}
                                </select>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">注册时间</label>
                                <div class="layui-input-inline" style="width: 100px;">
                                    <input type="text" name="createTimeMin" id="createTimeMin"  autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-form-mid">-</div>
                                <div class="layui-input-inline" style="width: 100px;">
                                    <input type="text" name="createTimeMax" id="createTimeMax"  autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>

                               <!-- <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>-->
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="playerTable" lay-filter="playerTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
   <!-- <a class="layui-btn  layui-btn-xs" lay-event="edit">修改</a>-->
    @if(shiro.isAdmin()){
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    @}
</script>

<script type="text/html" id="statusTpl">
    <input type="checkbox" lay-filter="status" value="{{d.id}}" lay-skin="switch"  lay-text="启用|冻结" {{d.status=='1'?'checked':''}}
        @if(!shiro.isAdmin()){
           disabled
           @}
    />
</script>

<script type="text/html" id="pic_big">
    <div id="photo_big" class="photo_big">
        <img src="{{d.userhead}}" layer-src="{{d.userhead}}" style="height: 50px;width: 50px; z-index: 1000" />
    <div>


</script>
<script  type="text/html" id="sexTpl">

        {{# if(d.sex==0){ }}
        <span> 无</span>

        {{#  }else if(d.sex==1){ }}
        <span> 男</span>
        {{#  }else if(d.sex==2){  }}
        <span>女 </span>
        {{# } }}
    </span>

</script>
<style>
    .layui-table-cell{
        height:50px;
        line-height: 50px;
    }
</style>
@}